package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PKevideosMapper;
import com.haima.ziliao.domain.PKevideos;
import com.haima.ziliao.service.IPKevideosService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 课程视频Service业务层处理
 * 
 * @author hima
 * @date 2024-10-21
 */
@Service
public class PKevideosServiceImpl extends ServiceImpl<PKevideosMapper, PKevideos> implements IPKevideosService
{
    @Autowired
    private PKevideosMapper pKevideosMapper;

    /**
     * 查询课程视频
     * 
     * @param id 课程视频主键
     * @return 课程视频
     */
    @Override
    public PKevideos selectPKevideosById(Long id)
    {
        return pKevideosMapper.selectPKevideosById(id);
    }

    /**
     * 查询课程视频列表
     * 
     * @param pKevideos 课程视频
     * @return 课程视频
     */
    @Override
    public List<PKevideos> selectPKevideosList(PKevideos pKevideos)
    {
        return pKevideosMapper.selectPKevideosList(pKevideos);
    }

    /**
     * 新增课程视频
     * 
     * @param pKevideos 课程视频
     * @return 结果
     */
    @Override
    public int insertPKevideos(PKevideos pKevideos)
    {
        return pKevideosMapper.insertPKevideos(pKevideos);
    }

    /**
     * 修改课程视频
     * 
     * @param pKevideos 课程视频
     * @return 结果
     */
    @Override
    public int updatePKevideos(PKevideos pKevideos)
    {
        return pKevideosMapper.updatePKevideos(pKevideos);
    }

    /**
     * 批量删除课程视频
     * 
     * @param ids 需要删除的课程视频主键
     * @return 结果
     */
    @Override
    public int deletePKevideosByIds(Long[] ids)
    {
        return pKevideosMapper.deletePKevideosByIds(ids);
    }

    /**
     * 删除课程视频信息
     * 
     * @param id 课程视频主键
     * @return 结果
     */
    @Override
    public int deletePKevideosById(Long id)
    {
        return pKevideosMapper.deletePKevideosById(id);
    }
}
